package org.example.DesignPatterns.Factory.OperationFactory;

/**
 * @description:
 * @author: farprt
 * @create: 2022-03-10 13:43
 **/
public class Client {
    public static void main(String[] args) throws Exception {
        IFactory operFactory=new DivFactory();
        Operation oper=operFactory.CreateOperation();
        oper.setNumberA(1);
        oper.setNumberB(5);
        double result=oper.getResult();
        System.out.println(result);
    }
}